"use client";

import { Button, Space } from "antd";
import { useRouter } from "next/navigation";

interface CourseActionsProps {
  courseId: string;
}

export function CourseActions({ courseId }: CourseActionsProps) {
  const router = useRouter();

  return (
    <Space>
      <Button 
        type="primary" 
        onClick={() => router.push(`/courses/${courseId}/edit`)}
      >
        编辑课程
      </Button>
      <Button 
        onClick={() => router.push(`/courses/${courseId}/tasks`)}
      >
        管理任务
      </Button>
    </Space>
  );
} 